package org.liaohailong.victorlibrary.ui

import android.os.Bundle
import android.view.View
import org.liaohailong.library.widget.photoview.VPhotoView
import org.liaohailong.victorlibrary.R
import org.liaohailong.victorlibrary.base.BaseActivity


/**
 * create by liaohailong
 * time 2023/1/9 14:26
 * desc: 测试 PhotoView
 */
class PhotoViewActivity : BaseActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_photo_view)

        val photoView:VPhotoView = findViewById(R.id.photo_view)

        findViewById<View>(R.id.btn_restore).setOnClickListener{
            photoView.restore()
        }
    }
}